package com.xhwl.logistics.service.cent.server;

import com.xhwl.common.dto.cent.vehicle.feign.VehicleIOCCommonQuery;
import com.xhwl.common.pojo.ResultJson;
import com.xhwl.logistics.dto.VehicleIOCStatisticsDTO;
import org.springframework.web.bind.annotation.*;

/**
 * @description:
 * @author: wuyuhao
 * @createDate: 2023/3/9 11:55
 */
//@RestController
public interface IVehicleIOCService {

    /**
     * 获取车位信息（蒙牛定制ioc）
     * @param projectId
     * @param type 1是大华-生活区-东门，2是红门-办公区-东门
     * @return
     */
    @RequestMapping(value = "/vehicle-ioc-service/car-pot-statistics", method = RequestMethod.POST)
    ResultJson carPotStatistics(@RequestPart("projectId") Integer projectId, @RequestPart("type") Integer type);

    /**
     * 车类型数量统计（蒙牛定制ioc）
     * 停车场所有车中，按车类型统计各个数量
     *
     * 大华：生活区、生产区
     * 红门：办公区
     * 02-东门：生活区、办公区
     * 01-南门：生产区
     * @param projectId
     * @param type 1是大华-生活区-东门，2是红门-办公区-东门
     * @return
     */
    @RequestMapping(value = "/vehicle-ioc-service/car-type-num-statistics", method = RequestMethod.POST)
    ResultJson carTypeNumStatistics(@RequestPart("projectId") Integer projectId, @RequestPart("type") Integer type);

    /**
     * 车辆通行记录-分页（蒙牛定制ioc）
     * @param commonQuery
     * @return
     */
    @RequestMapping(value = "/vehicle-ioc-service/page-car-record", method = RequestMethod.POST)
    ResultJson pageCarRecord(@RequestPart("query") VehicleIOCCommonQuery commonQuery);

    /**
     * 在园车辆统计（蒙牛定制ioc）
     * @param commonQuery
     * @return
     */
    @RequestMapping(value = "/vehicle-ioc-service/statistics-vehicle-in-park", method = RequestMethod.POST)
    ResultJson statisticsVehicleInPark(@RequestPart("query") VehicleIOCCommonQuery commonQuery);

    /**
     * 车辆类别统计（蒙牛定制ioc）
     * @param commonQuery
     * @return
     */
    @RequestMapping(value = "/vehicle-ioc-service/car-classify-num-statistics", method = RequestMethod.POST)
    ResultJson carClassifyNumStatistics(@RequestPart("query") VehicleIOCCommonQuery commonQuery);

    /**
     * 获取蒙牛车行道闸状态
     */
    @RequestMapping(value = "/vehicle-ioc-service/access-record-passage-statistics", method = RequestMethod.POST)
    ResultJson accessRecordPassageStatistics(@RequestBody VehicleIOCStatisticsDTO commonQuery);

}
